package jicheng;

public class Dongwu {
    private String name;
    private int id;
    public Dongwu(String myName,int myid){
        name = myName;
        id = myid;
    }
    public void eat(){
        System.out.println(name+"正在吃");
    }
    public void sleep(){
        System.out.println(name+"正在睡");
    }
    public void ziwojieshao(){
        System.out.println("大家好!我叫"+name+"我的id是"+id+"号");
    }
    private void zhangsan(){
        System.out.println("我叫张三");
    }
}
